
#encoding=UTF-8

from Error import *
from Building import *

class SpellFactory(Building):
	def __init__(self):
		Building.__init__(self)
		self.url = "http://clashofclans.wikia.com/wiki/Spell_Factory"
		self.number_available_dsec = """
0	0	0	0	1	1	1	1	1	1
"""
		self.level_info_desc = """
1	200	Lightning Spell	1	200,000	1 day	25	293	5
2	300	Healing Spell	2	400,000	2 days	25	415	6
3	400	Rage Spell	3	800,000	4 days	25	587	7
4	500	Jump Spell	4	1,600,000	5 days	25	657	9
5	600	Freeze Spell	5	3,200,000	6 days	25	720	10
"""
		self._DoParse()

	def _HitPointsIndex(self):
		return 1

	def _BuildCostType(self):
		return 1 #Elixir

	def _BuildCostIndex(self):
		return 4

	def _BuildTimeIndex(self):
		return 5

	def _ExperienceGainedIndex(self):
		return 7

	def _TownHallLevelRequiredIndex(self):
		return 8

